agents.anac.y2010.Southampton
Class IAMcrazyHaggler

java.lang.Object
  extended by negotiator.Agent
      extended by agents.anac.y2010.Southampton.SouthamptonAgent
          extended by agents.anac.y2010.Southampton.IAMcrazyHaggler

public class IAMcrazyHaggler
extends SouthamptonAgent

Author:
Colin Williams

Field Summary
 
Fields inherited from class agents.anac.y2010.Southampton.SouthamptonAgent
acceptMultiplier, bidSpace, MAXIMUM_ASPIRATION, myLastAction, myLastBid, myPreviousBids, opponentBids, opponentIsHardHead, opponentModel, opponentPreviousBid
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
IAMcrazyHaggler()
           
 
Method Summary
 java.lang.String getName()
           
static java.lang.String getVersion()
           
 void init()
          This method is called by the protocol every time before starting a new session after the internalInit method is called.
protected  Bid proposeInitialBid()
          Propose the initial bid.
protected  Bid proposeNextBid(Bid opponentBid)
          Propose the next bid.
 
Methods inherited from class agents.anac.y2010.Southampton.SouthamptonAgent
chooseAction, finalize, getAgentNo, getRandomBidInRange, log, ReceiveMessage
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IAMcrazyHaggler

public IAMcrazyHaggler()
Method Detail

init

public void init()
Description copied from class: Agent
This method is called by the protocol every time before starting a new session after the internalInit method is called. User can override this method.

Overrides:
init in class SouthamptonAgent

getName

public java.lang.String getName()
Overrides:
getName in class Agent
Returns:
name of the agent.

proposeInitialBid

protected Bid proposeInitialBid()
                         throws java.lang.Exception
Description copied from class: SouthamptonAgent
Propose the initial bid.

Specified by:
proposeInitialBid in class SouthamptonAgent
Returns:
The action to be bid.
Throws:
java.lang.Exception

proposeNextBid

protected Bid proposeNextBid(Bid opponentBid)
                      throws java.lang.Exception
Description copied from class: SouthamptonAgent
Propose the next bid.

Specified by:
proposeNextBid in class SouthamptonAgent
Parameters:
opponentBid - The bid that has just been made by the opponent.
Returns:
The action to be bid.
Throws:
java.lang.Exception

getVersion

public static java.lang.String getVersion()
Returns: